<?php
$account_id = $this->session->userdata('doggy.id');
$account_name = $this->session->userdata('account_name');
?>
<div id="nouveaux_membres">
<div class="titre_home" style="text-transform: uppercase;">Suggestions</div>
    <table width="100%"class="list">
        <?php foreach ($no_friends as $aRow): ?>
        <?php
            $image_ava = './doggy_avatar/images/' . $aRow['avatar'];
            if (file_exists($image_ava) && $aRow['avatar'] != null) {
                $image_ava = base_url() . 'doggy_avatar/images/' . $aRow['avatar'];
            } else {
                $image_ava = base_url() . 'assets/noimage.gif';
            } ?>
        <tr>
                <td width="20%" align="center"><div align="center" style="width: 50px;height: 50px;background: transparent"><a href="<?php echo site_url('home/compte/' . $aRow['id']); ?>"><img src="<?php echo $image_ava; ?>" align="middle" border="0" style="max-width: 50px;max-height: 50px" alt=""/></a></div>
                </td>
                <td style="padding-left: 20px;"><a style="color: #3B5998;" href="<?php echo site_url('home/compte/' . $aRow['id']); ?>"><span class="noun"><?php echo $aRow['display_name']; ?></span></a>
                </td>
                <td width="30%" align="center"><a href="<?php echo site_url('friend/send_friend_request/' . $aRow['id']); ?>">Ajouter à mes amis</a>
                </td>
            </tr>
        <?php endforeach; ?>
        </table>
        <div align="center"><font color="#5d94c5" style="font-size: normal;"><?php if (isset($pagination)) {
                echo $pagination;
            } ?></font></div>
</div>
<!--END wrapper-content-->
